]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
search: Center name label vertically
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 4 Nov 2025 15:14:37 +0000 (16:14 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 24 Nov 2025 13:42:59 +0000 (14:42 +0100)
If all search results of the provider are shown, the "x more" label
is hidden, and the name label has more space than it needs.

Center the label vertically in that case to align with the icon.

Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8793
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3951>
(cherry picked from commit 191f3d68513552d71ed4df8e1f50c30d408d441b)

js/ui/search.js

index d7f1df3949ac731d478acc1a0592e5cdde53e921..3333e042d40e9360e51f3ff0296981c420297f2e 100644 (file)
@@ -950,11 +950,14 @@ class ProviderInfo extends St.Button {
             style_class: 'list-search-provider-details',
             orientation: Clutter.Orientation.VERTICAL,
             x_expand: true,
+            y_expand: false,
         });
 
         const nameLabel = new St.Label({
             text: provider.appInfo.get_name(),
             x_align: Clutter.ActorAlign.START,
+            y_align: Clutter.ActorAlign.CENTER,
+            y_expand: true,
         });
 
         this._moreLabel = new St.Label({x_align: Clutter.ActorAlign.START});